home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 1998 June
/
SGI IRIX 6.5 Applications 1998 June.iso
/
dist
/
ns_admin.idb
/
etc
/
init.d
/
ns_admin.z
/
ns_admin
Wrap
Text File
|
1998-03-02
|
996b
|
48 lines
#!/bin/sh
#Tag 0x00000f00
#
# $Revision: 1.1 $
#
IS_ON=/sbin/chkconfig
if $IS_ON verbose; then
ECHO=echo
else # For a quiet startup and shutdown
ECHO=:
fi
NS_HOME=/usr/ns-home
CONFIGURE=$NS_HOME/sgi_config/admin/configure
case "$1" in
start)
$CONFIGURE
if $IS_ON ns_admin; then
$ECHO "Starting Netscape Administration Server"
if [ $? -ne 0 ]; then
$ECHO "Cannot configure the Netscape Administration Server"
elif [ ! -x $NS_HOME/start-admin ]; then
$ECHO "$NS_HOME/start-admin missing!"
else
$NS_HOME/start-admin
fi
fi
;;
stop)
$ECHO "Stopping Netscape Administration Server"
if [ -x $NS_HOME/stop-admin ]; then
$NS_HOME/stop-admin > /dev/null 2>&1
if [ $? -ne 0 ]; then
$ECHO "Cannot stop Netscape Administration Server."
fi
else
echo "$NS_HOME/stop-admin for Netscape Administration server missing!"
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac